Skip to content

fix(template): avoid variable shadowing in generated TableType methods by prefixing underscore#55

Merged
mackee merged 2 commits intomasterfrom
fix/plugin-template-vars
May 19, 2025
Merged

fix(template): avoid variable shadowing in generated TableType methods by prefixing underscore#55
mackee merged 2 commits intomasterfrom
fix/plugin-template-vars

Conversation

@mackee
Copy link
Copy Markdown
Owner

@mackee mackee commented May 19, 2025

Prefixed an underscore to local variables in template-generated TableType methods to prevent shadowing of receiver or method arguments. This update maintains code clarity and resolves potential variable name conflicts in methods such as plural getters, AssociateBy, GroupBy, and time hook hooks.

mackee added 2 commits May 19, 2025 11:21
…s by prefixing underscore

Prefixed an underscore to local variables in template-generated TableType methods to prevent shadowing of receiver or method arguments. This update maintains code clarity and resolves potential variable name conflicts in methods such as plural getters, AssociateBy, GroupBy, and time hook hooks.
@mackee mackee merged commit 0c7d2cf into master May 19, 2025
1 check passed
@mackee mackee deleted the fix/plugin-template-vars branch May 19, 2025 02:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant